<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let s1 = Symbol("123")
        let s2 = Symbol("123")
        // 表示独一无二的值
        console.log(s1 === s2)//false

        console.log(s1)//Symbol(123)

        let obj = {
            age:500,
            [Symbol('name')]: Symbol("孙悟空")
        }
        // 无法遍历
        for(const key in obj){
            console.log(key);
        }

    </script>
</body>
</html>